package com.godyao.mall.pms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.godyao.mall.core.utils.PageUtils;
import com.godyao.mall.pms.entity.AttrEntity;
import com.godyao.mall.pms.entity.AttrGroupEntity;
import com.godyao.mall.pms.vo.request.AttrGroupRequestVo;
import com.godyao.mall.pms.vo.response.AttrGroupResponseVo;
import com.godyao.mall.pms.vo.response.AttrResponseVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author godyao
 * @email godyao0801@qq.com
 * @date 2022-04-19 14:42:40
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catlogId);

    List<AttrEntity> listAttrByGroup(Long attrGroupId);

    void removeRelations(AttrGroupRequestVo[] attrGroupIds);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    void saveBatch(List<AttrGroupRequestVo> requestVos);

    List<AttrGroupResponseVo> getAttrGroupByCateId(Long catelogId);
}

